package com.ruoyi.supermarket.mapper;

import java.util.List;
import com.ruoyi.supermarket.domain.Purchase;

/**
 * 采购采退汇总Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-22
 */
public interface PurchaseMapper 
{
    /**
     * 查询采购采退汇总
     * 
     * @param purchaseId 采购采退汇总主键
     * @return 采购采退汇总
     */
    public Purchase selectPurchaseByPurchaseId(Long purchaseId);

    /**
     * 查询采购采退汇总列表
     * 
     * @param purchase 采购采退汇总
     * @return 采购采退汇总集合
     */
    public List<Purchase> selectPurchaseList(Purchase purchase);

    /**
     * 新增采购采退汇总
     * 
     * @param purchase 采购采退汇总
     * @return 结果
     */
    public int insertPurchase(Purchase purchase);

    /**
     * 修改采购采退汇总
     * 
     * @param purchase 采购采退汇总
     * @return 结果
     */
    public int updatePurchase(Purchase purchase);

    /**
     * 删除采购采退汇总
     * 
     * @param purchaseId 采购采退汇总主键
     * @return 结果
     */
    public int deletePurchaseByPurchaseId(Long purchaseId);

    /**
     * 批量删除采购采退汇总
     * 
     * @param purchaseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePurchaseByPurchaseIds(Long[] purchaseIds);

    List<Purchase> selectPurchaseListZf(Purchase purchase);
}
